﻿using System;
using UnityEngine;
using UnityEngine.UI;

public class LoadingUI:MonoBehaviour
{
    [SerializeField]
	private UILabel m_contentLabel;

    void Awake()
    {
        gameObject.SetActive(false);
    }

	public void ShowLoadingUI(string content,float progress){
		gameObject.SetActive (true);
        m_contentLabel.text = content + "----进度" + (progress * 100).ToString("f1") + "%";
	}

	public void HideLoadingUI(){
        gameObject.SetActive (false);
	}

}

